package org.ssm.service.impl;

import org.ssm.dao.UserMapper;
import org.ssm.pojo.User;
import org.ssm.service.UserService;

import javax.annotation.Resource;
import java.util.List;

public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public String update(User user) {
        return userMapper.update(user);
    }

    @Override
    public User getOneUser(long id) {
        return userMapper.getOneUser(id);
    }

    @Override
    public int getRecordCount(User user) {
        return userMapper.getRecordCount(user);
    }

    @Override
    public List<User> getUserListByPage(User user) {
        return userMapper.getUserListByPage(user);
    }

    @Override
    public List<User> getTopUserList() {
        return userMapper.getTopUserList();
    }
}
